Skip to content

fix: register_derivative method#109

Merged
bonnie57 merged 17 commits intomainfrom
PYSDK-30
Aug 12, 2025
Merged

fix: register_derivative method#109
bonnie57 merged 17 commits intomainfrom
PYSDK-30

Conversation

@bonnie57
Copy link
Contributor

@bonnie57 bonnie57 commented Aug 11, 2025

Description

  1. Fix the register_derivative method
  2. Create AccessPermission enum and apply it to the related methods and signature
  3. Create DerivativeDataInput type and the derivative_data data class to validate logic
  4. Create the get_function_signature method to get the function signature
  5. Create the tests/unit/conftest.py file to save common fixtures
  6. Export common constants

Test Plan

Unit test

image

Integration test

image

Related Issue

#97

…rmission handling to use AccessPermission.ABSTAIN; enhance test cases to utilize DerivativeDataInput for improved clarity and type safety
@bonnie57 bonnie57 changed the title [WIP] Fix: register_derivative method Fix: register_derivative method Aug 11, 2025

return {
"signature": signed_message.signature.hex(),
"signature": "0x" + signed_message.signature.hex(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the change we discussed earlier—the return value default without the 0x? If so, we should emphasize it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a generated signature instead of tx_hash.

@lucas2brh lucas2brh changed the title Fix: register_derivative method fix: register_derivative method Aug 12, 2025
@bonnie57 bonnie57 merged commit a90d141 into main Aug 12, 2025
12 checks passed
@bonnie57 bonnie57 deleted the PYSDK-30 branch August 12, 2025 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants